export declare interface UidDataType {
    uid: string;
}
export declare interface ValidateCodeBody {
    mobile: string;
    scene: string;
}
export declare interface PhoneLoginBody {
    mobile: string;
    code: string;
}
export declare interface WxLoginBody {
    phoneCode: string;
    loginCode: string;
    state: string;
}
export declare interface UidTopicIdDataType {
    uid: string;
    topic_id: string;
}
export declare interface CreateTopicDataType {
    uid: string;
    search_text: string;
}
export declare interface SearchTopicDataType {
    uid: string;
    search_text: string;
}
export declare interface UserType {
    userId: string;
}
export declare interface TopicType {
    topic_id: string;
    topic_name: string;
}
export declare interface UidPageIndexSizeType {
    uid: string;
    page_index: number;
    page_size: number;
}
export declare interface UidPrimaryDisciplineType {
    uid: string;
    primary_discipline: string[];
}
export declare interface ChatItemType {
    dialogue_id: string;
    user: string;
    reasoning: string;
    aispire: string;
    answerKey: string;
    loading: boolean;
    reasoningExpand: boolean;
    status: number;
    userEdit: boolean;
    editText: string;
    reasoningFinish: boolean;
    finish: boolean;
    topicId: string;
    similarQuestionList: Array<any>;
    referenceList: Array<any>;
    referenceListObj: any;
    reasoningObj?: Object;
    aispireObj?: Object;
    [key: string]: any;
}
export enum ChatStatusEnum {
    Start= -1, // 开始提问
    Thinking= 1,// 思考推理中
    Loading= 2,// 答案返回中
    Stop= 3,// 停止
}
export type ResDto = {
    code: number;
    msg: string;
    data?: any;
}
export type PortraitType = {
    "uid": string;  // 用户id，数艾缘知自己的账号体系。
    "area": string;    // 地域
    "age_group": string;   // 年龄段
    "gender": string;  // 性别
    "degree": string;  // 学历
    "title": string;  // 职位
    "research_plan": string[];  // 科研计划
    "primary_discipline": string[];  // 一级学科
    "secondary_discipline": string[]; // 二级学科
    "research_topic": string[]; // 研究主题
}
export type DirectoriesType = {
  "dir_id": string;
  "dir_name": string;
  "dir_type": string;
  "icon_type": string;
  "update_time": string;
  "parent_id": string;
  "children": any[];
}

export type FileType = {
  "id": string;
  "parent_id": string;
  "file_name": string;
  "file_type": string;
  "file_path": string;
  "author": string;
  "publish_time": string;
  "title": string;
}
export type dirOpType = {
  "dir_id": string
  "uid":  string
}

export type DetailDataType = {
  id: string;
  uid: string;
  title?: string;
  content?: string;
  ai_title?: string;
  citation?: string;
  link?: string;
  image_url?: string;
  collection: number;
  like: number;
  publlish_time?: string; // 发布时间（注意拼写）
  is_collected?: boolean; // 是否已收藏
  is_liked?: boolean; // 是否已点赞
  is_followed?: boolean; // 是否已关注
  comments?: Array<{
    uid: string;
    comment_time: string;
    comment: string;
    comment_id: string;
    icon: string;
    nickname: string;
  }>;
  [key: string]: any;
}

export type FollowInfoType = {
  status: string;
  follower_list: Array<any>;
  follower_count: number;
  following_list: Array<any>;
  following_count: number;
}

export type CollectionItemType = {
  id: string;
  uid: string;
  title?: string;
  content?: string;
  ai_title?: string;
  citation?: string;
  link?: string;
  image_url?: string;
  collection: number;
  like: number;
  username?: string;
  avatar?: string;
  publish_time?: string;
  primary_discipline?: string;
  secondary_discipline?: string[];
  tags?: string[];
  [key: string]: any;
}

// 参考资料相关类型定义
export type ChatReferenceType = {
  id: string;
  title: string;
  content: string;
  source: string;
  url?: string;
  relevance_score?: number;
  [key: string]: any;
}

export type GetChatReferenceDataType = {
  uid: string;
  topic_id: string;
  dialogue_id: string;
}

export type MergeChatReferenceDataType = {
  uid: string;
  topic_id: string;
  dialogue_id: string;
  body: string;
}